package com.xdxc.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xdxc.model.dto.ExamDto;
import com.xdxc.model.dto.ExamQueryDTO;
import com.xdxc.model.dto.ExamSubmitDto;
import com.xdxc.model.entity.Exams;
import com.xdxc.model.form.ExamsForm;

import java.util.List;

public interface ExamsService extends IService<Exams> {
    Page<Exams> pageExams(ExamQueryDTO queryDTO);

    ExamsForm getExamsFormData(Long id);

    boolean saveExams(ExamsForm formData);

    boolean updateExams(Long id, ExamsForm formData);

    boolean deleteExams(String ids);

    List<ExamDto> returnExamsData(int page, int size);

    Boolean submitExam( ExamSubmitDto examSubmitDto);
}